package com.ruoyi.web.settlestyle.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.settlestyle.mapper.SettlestyleMapper;
import com.ruoyi.web.settlestyle.domain.Settlestyle;
import com.ruoyi.web.settlestyle.service.ISettlestyleService;

/**
 * settlestyleService业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-26
 */
@Service
public class SettlestyleServiceImpl implements ISettlestyleService 
{
    @Autowired
    private SettlestyleMapper settlestyleMapper;

    /**
     * 查询settlestyle
     * 
     * @param cSSCode settlestyle主键
     * @return settlestyle
     */
    @Override
    public Settlestyle selectSettlestyleByCSSCode(String cSSCode)
    {
        return settlestyleMapper.selectSettlestyleByCSSCode(cSSCode);
    }

    /**
     * 查询settlestyle列表
     * 
     * @param settlestyle settlestyle
     * @return settlestyle
     */
    @Override
    public List<Settlestyle> selectSettlestyleList(Settlestyle settlestyle)
    {
        return settlestyleMapper.selectSettlestyleList(settlestyle);
    }

    /**
     * 新增settlestyle
     * 
     * @param settlestyle settlestyle
     * @return 结果
     */
    @Override
    public int insertSettlestyle(Settlestyle settlestyle)
    {
        return settlestyleMapper.insertSettlestyle(settlestyle);
    }

    /**
     * 修改settlestyle
     * 
     * @param settlestyle settlestyle
     * @return 结果
     */
    @Override
    public int updateSettlestyle(Settlestyle settlestyle)
    {
        return settlestyleMapper.updateSettlestyle(settlestyle);
    }

    /**
     * 批量删除settlestyle
     * 
     * @param cSSCodes 需要删除的settlestyle主键
     * @return 结果
     */
    @Override
    public int deleteSettlestyleByCSSCodes(String[] cSSCodes)
    {
        return settlestyleMapper.deleteSettlestyleByCSSCodes(cSSCodes);
    }

    /**
     * 删除settlestyle信息
     * 
     * @param cSSCode settlestyle主键
     * @return 结果
     */
    @Override
    public int deleteSettlestyleByCSSCode(String cSSCode)
    {
        return settlestyleMapper.deleteSettlestyleByCSSCode(cSSCode);
    }
}
